<template>
	<view v-html="goodslist[0].data_content">
		{{goodslist[0].data_content}}
	</view>
</template>

<script>
	export default {
		data() {
			return {
				data_title:'',
				goodslist:[]

			}
		},
		onLoad(options){
			this.data_title=options.data_title || ''
			
			this.getCateList()
		},
		methods:{
			async getCateList(){
				const {data:res}= await uni.$http.post('http://127.0.0.1:5000/data',{ data_title:this.data_title })
			
				if(res.meta.status !== 200)return uni.$showMsg()
				this.goodslist=res.message.goods

				
				}
		}
	}
</script>

<style lang="scss">

</style>
